
//
//  BNUserAccountModel.swift
//  BNWeiBo
//
//  Created by ba.o0 on 16/8/11.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class BNUserAccountModel: NSObject {

    
    //用户授权的唯一票据
    var access_token: String?
    //access_token的生命周期，单位是秒数
    var expires_in: Int = 0
    // 授权用户的UID
    var uid: String?
    
    init(dict:[String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    //13.3
    //重写description
    override var description: String{
        let keys = ["access_token","expires_in","uid"]
        return dictionaryWithValuesForKeys(keys).description
    }
}
